package com.demo.date;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

/**
 * @author gy
 * @date 2022/3/23
 */
public class LongTest {
    public static void main(String[] args) {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        sdf.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        Long l = 1648005300L;
        Date date = new Date(l);
        String format = sdf.format(date);
        System.out.println("============="+format);
    }
}
